<template>
	<ynet-tab-bar
		v-model="current"
		:items="items"
		:maxLength="5"
	></ynet-tab-bar>
</template>
<script>
	import { TabBar } from 'ynet-mobile'
	export default {
		title: '首屏数量，5个以后滚动',
		name: 'tab-bar-demo',
		components: {
			[TabBar.name]: TabBar
		},
		data(){
			return {
				current: 1,
				items: [
					{name: 1, label: '标签1'},
					{name: 2, label: '标签2'},
					{name: 3, label: '标签3'},
					{name: 4, label: '标签4'},
					{name: 5, label: '标签5'}
				]
			}
		}
	}
</script>